/**
* 作者: lichuan
* 日期: 2025-06-25 14:56:13
* 备注: 世界Boss奖励表
*/
package com.motu.monstercity.server.game.commondata.worldboss;

import io.vertx.core.json.JsonObject;

public class WorldBossRewardModel {
	protected int id; // 数据库Id
	protected int groupId; // 模版id
	protected int level; // 伤害等级
	protected long personalDamage; // 奖励对应伤害量 (该玩家本场战斗造成的最终伤害值)
	protected String reward; // 奖励 (奇数为道具id，偶数为数量  实际获得的奖励本场战斗造成的最终伤害值对应档位的奖励)
	protected int earnReward; // 奖励秒数

	public WorldBossRewardModel() {
	}

	public WorldBossRewardModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		groupId = obj.containsKey("group_id") ? obj.getInteger("group_id") : 0;
		level = obj.containsKey("level") ? obj.getInteger("level") : 0;
		personalDamage = obj.containsKey("personal_damage") ? obj.getLong("personal_damage") : 0;
		reward = obj.containsKey("reward") ? obj.getString("reward") : "";
		earnReward = obj.containsKey("earn_reward") ? obj.getInteger("earn_reward") : 0;
	}

	public int getId() {
		return id;
	}

	public int getGroupId() {
		return groupId;
	}

	public int getLevel() {
		return level;
	}

	public long getPersonalDamage() {
		return personalDamage;
	}

	public String getReward() {
		return reward;
	}

	public int getEarnReward() {
		return earnReward;
	}

}
